
par_mode=("naive" "MPGP" "AGP")
for par_type in "${par_mode[@]}"
do
    free -m
    sync; echo 1 > /proc/sys/vm/drop_caches
    free -m
    # ./build/mpgp file ./dataset/cora_edgelist.txt N 2708 P 3 partition_mode ${par_type} stream_mode sequence
    ./build/mpgp file ./dataset/blogcatalog.txt N 10312 P 8 partition_mode ${par_type} stream_mode sequence
    # ./build/mpgp file ./dataset/Slash.txt N 82168 P 8 partition_mode ${par_type} stream_mode sequence
done


# par_mode=("naive" "MPGP" "AGP")
# for par_type in "${par_mode[@]}"
# do
#     free -m
#     sync; echo 1 > /proc/sys/vm/drop_caches
#     free -m
#     # ./build/vertpart file ./dataset/cora_edgelist.txt par_mode ${par_type} p_num 3
#     ./build/vertpart file ./dataset/blogcatalog.txt par_mode ${par_type} p_num 8
#     # ./build/vertpart file ./dataset/Slash.txt par_mode ${par_type} p_num 8
# done


par_mode=("naive" "MPGP" "AGP")
for par_type in "${par_mode[@]}"
do
    free -m
    sync; echo 1 > /proc/sys/vm/drop_caches
    free -m
    # ./build/rawrandomwalks file ./dataset/cora_edgelist.txt N 2708 R 100000 L 80 p_num 3 par_mode ${par_type}
    ./build/rawrandomwalks file ./dataset/blogcatalog.txt N 10312 R 100000 L 80 p_num 8 par_mode ${par_type}
    # ./build/rawrandomwalks file ./dataset/Slash.txt N 82168 R 100000 L 80 p_num 8 par_mode ${par_type}
done
